﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FactoryAndStrategy
{
    /// <summary>
    /// 扣款策略接口
    /// </summary>
    public interface IDeduction
    {
        /// <summary>
        /// 扣款，提供交易和卡信息，进行扣款，并返回扣款是否成功
        /// </summary>
        /// <param name="card"></param>
        /// <param name="trade"></param>
        /// <returns></returns>
        bool exec(Card card, Trade trade);
    }
}
